package com.rxyb.security.utils;

import cn.hutool.core.lang.tree.TreeNode;

/**
 * @author YJH
 * @version 1.0
 * @description TreeNode扩展
 * @date 2020/7/8 15:25
 */
public class TreeNodeExtend<T> extends TreeNode {

    // 描述
    private String menuDesc;
    // url
    private String menuUrl;
    // menuIcon
    private String menuIcon;
    // 是否默认选中
    private boolean active;

    public TreeNodeExtend() {
    }

    public TreeNodeExtend(Object id, Object parentId, String name, Comparable weight) {
        super(id, parentId, name, weight);
    }

    public TreeNodeExtend(Object id, Object parentId, String name, Comparable weight, String menuDesc, String menuUrl, String menuIcon, boolean active) {
        super(id, parentId, name, weight);
        this.menuDesc = menuDesc;
        this.menuUrl = menuUrl;
        this.menuIcon = menuIcon;
        this.active = active;
    }

    public String getMenuDesc() {
        return menuDesc;
    }

    public void setMenuDesc(String menuDesc) {
        this.menuDesc = menuDesc;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
}
